Put _powerline_prompt at the start

Reason: $? may be overridden by the previous commands in PROMPT_COMMAND that do 
not keep it like _powerline_prompt does (see `return $last_exit_code`). 
(@ascrane)

Closes #836
Merge branch 'bash-keep-status' into develop