Laverna: Self-hosted Evernote alternative
I'm not that excited by Lavema, but it lead me tagspaces (http://www.tagspaces.org/), which seems much more awesome.It just saves to your local filesystem, so you can sync with drive or dropbox if you want, layer some encryption in between with fuse. 
There's a mobile client, but you'll have to keep the note directory synced manually with a 3rd-party app.